﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.SYS
{
    [DataContract, Table("message_warning")]
    public class MessageWarning
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Column("message_seq")]
        public int MessageId { get; set; }

        [DataMember, Column("message_th")]
        public string MessageTh { get; set; }

        [DataMember, Column("message_en")]
        public string MessageEn { get; set; }

        [DataMember, Column("message_type")]
        public string MessageType { get; set; }

        [DataMember, Column("remarks")]
        public string Remarks { get; set; }

        [DataMember, Column("record_status")]
        public string RecordStatus { get; set; }

        [DataMember, Column("created_by")]
        public int? CreatedBy { get; set; }

        [DataMember, Column("created_when")]
        public DateTime? CreatedWhen { get; set; }

        [DataMember, Column("updated_by")]
        public int? UpdatedBy { get; set; }

        [DataMember, Column("updated_when")]
        public DateTime? UpdatedWhen { get; set; }
    }
}